package com.zhiyou100.javaweb.myservlet.day004;

/**
 * @packageName: javase_26
 * @className: ${NAME}
 * @Description: TODO 测试请求转发/请求包含/重定向的区别
 * @author: yang
 * @date: 2020/5/25
 */
@javax.servlet.annotation.WebServlet(name = "Day004ServletTest",urlPatterns = "/day004/s2")
public class Day004ServletTest extends javax.servlet.http.HttpServlet {
    @Override
    protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {
        String aa = (String) request.getAttribute("a");
        // 15238159262
        System.out.println(aa);
    }

    @Override
    protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {
        doPost(request, response);
    }
}
